package java_thinking.unit_5._5_8;

/**
 * @Description : 数组
 * @author: cww
 * @DateTime: 2019-02-22 23:44
 */

public class array {
    public static void main(String[] args) {
        int[] a1 = { 1, 2, 3, 4, 5 };
        int[] a2;
        a2 = a1;
        for(int i = 0; i < a2.length; i++){

            a2[i]++;
        }
        for(int i = 0; i < a1.length; i++){

            prt("a1[" + i + "] = " + a1[i]);
        }
    }
    static void prt(String s) {
        System.out.println(s);
    }
}
